<?php
/*******************************************************************************
 * $Date:: Oct 9, 2011 10:25:12 PM											   $
 * $Revision: 													               $
 * $Author:: Tuan Duong													       $
 * $Comment::															       $
 ******************************************************************************/ 

/**
 * Class description.
 * @package: Lua
 * @subpackage: Subpackage
 * @author: Tuan Duong <bacduong[at]gmail[dot]com>
 * @version: 
 */
 
class ProductController extends Lua_Controller_Default {
    public function init()
    {
        parent::init();
        if (!$this->isLogged()) {
            $this->redirect(array(
                Lua_Constant_General::PARAM_CONTROLLER => 'index',
                Lua_Constant_General::PARAM_ACTION => 'index'
            ));
        }
        $this->panelLeft = './user-left.phtml';
    }
    public function addAction()
    {
    }
    
    public function addSubmitAction()
    {
        if (!($this->request->isPost())) {
            $this->redirect(array(
                Lua_Constant_General::PARAM_ACTION    => 'add'
            ));
        }
        
        $gallery = new Lua_Bean_IpooGallery();
    }
    
    public function editAction()
    {
        
    }
}
